/*搜索条件数据*/
var department = new Vue({
    el: "#department-search",
    data: {
        /* 时间查询*/
        timeQueryChoice: [
            {
                value: 'bushiyong',
                label: '不启用'
            },
            {
                value: 'lurushijian',
                label: '录入时间'
            },
            {
                value: 'jihuahuifang',
                label: '计划回访'
            },
            {
                value: 'jihuahuifangshijian',
                label: '计划回访时间'
            }
        ],
        modeltime: '',
        /*成交状态*/
        timeQuery: [
            {
                value: 'bushiyong',
                label: '不启用'
            },
            {
                value: 'lurushijian',
                label: '录入时间'
            },
            {
                value: 'jihuahuifang',
                label: '计划回访'
            },
            {
                value: 'jihuahuifangshijian',
                label: '计划回访时间'
            }
        ],
        modelItme: '',
        Deal: [
            {
                value: '已成交',
                label: '已成交'
            },
            {
                value: '未成交',
                label: '未成交'
            }
        ],
        modelDeal: '',
        /*省份城市选择*/
        data: [{
            value: '四川',
            label: '四川',
            children: [
                {
                    value: '成都',
                    label: '成都'
                }
            ]
        }, {
            value: 'jiangsu',
            label: '江苏',
            children: [
                {
                    value: 'nanjing',
                    label: '南京',
                }
            ],
        },
            {
                value: "hainan",
                label: "海南",
                children: [
                    {
                        value: "haikou",
                        label: "海口"
                    }
                ]
            }
        ],
        province: [],


        /* 购买意向*/
        intention: [
            {
                value: 'yixiangqianglie',
                label: '意向强烈',
            },
            {
                value: 'yixiangyiban',
                label: '意向一般'
            },
            {
                value: 'meiyixiang',
                label: '没意向'
            }
        ],
        purchaseIntention: '',

        /*回访状态*/
        visit: [
            {
                value: '已回访',
                label: '已回访'
            },
            {
                value: '未回访',
                label: '未回访'
            }
        ],
        modelVisit: '',


        /*来源类型*/
        type: [
            {
                value: 'tongcheng',
                label: '58同城'
            },
            {
                value: 'baidu',
                label: '百度搜索'
            },
            {
                value: 'weixin',
                label: '微信'
            }
        ],
        sourceType: '',
    }
})
//主页按钮数据
var bombBox = new Vue({
    el: "#section-bomb-box",
    data: {
        /*添加客户*/
        AddClient: false,
        /*客户属性*/
        property: [
            {
                value: '公共客户1',
                label: '公共客户2'
            },
            {
                value: '公共客户2',
                label: '公共客户2'
            },
            {
                value: '公共客户3',
                label: '公共客户3'
            },

        ],
        clientProperty: '',
        /*客户归属*/
        ownership: [
            {
                value: '销售部1',
                label: '销售部1'
            },
            {
                value: '销售部2',
                label: '销售部2'
            },
            {
                value: '销售部3',
                label: '销售部3'
            },

        ],
        customerOwnership: '',
        /*客户来源*/
        source: [
            {
                value: '销售部1',
                label: '销售部1'
            },
            {
                value: '销售部2',
                label: '销售部2'
            },
            {
                value: '销售部3',
                label: '销售部3'
            },

        ],
        customerSource: '',
        /*来源终端*/
        terminal: [
            {
                value: 'PC',
                label: 'PC'
            },
            {
                value: '微信端',
                label: '微信端'
            },
            {
                value: '微信端',
                label: '微信端'
            },

        ],
        sourceTerminal: '',
        /*意向来源*/
        intention: [
            {
                value: 'PC',
                label: 'PC'
            },
            {
                value: '微信端',
                label: '微信端'
            },
            {
                value: '微信端',
                label: '微信端'
            },

        ],
        modelIntention: '',
        /*客户等级*/
        level: [
            {
                value: '普通客户',
                label: '普通客户'
            },
            {
                value: '普通客户1',
                label: '普通客户1'
            },
            {
                value: '普通客户2',
                label: '普通客户2'
            },

        ],
        customerLevel: '',
        /*放入公客池*/
        maleGuests: false,
        /*转移客户*/
        transferCustomer: false,
        /*选择用户*/
        user: [
            {
                value: '客户1',
                label: '客户2'
            },
            {
                value: '客户2',
                label: '客户2'
            },
            {
                value: '客户3',
                label: '客户3'
            },

        ],
        selectUser: '',
        /*跟踪状态*/
        status: [
            {
                value: '销售部1',
                label: '销售部1'
            },
            {
                value: '销售部2',
                label: '销售部2'
            },
            {
                value: '销售部3',
                label: '销售部3'
            },

        ],
        trackStatus: '',
        /*计划回访类别*/
        plan: [
            {
                value: '电话回访',
                label: '电话回访'
            },
            {
                value: '带看回访',
                label: '带看回访'
            },
            {
                value: '接机回访',
                label: '接机回访'
            },

        ],
        modelplan: '',
        /*带看房源*/
        seelist: [
            {
                value: '带看房源1',
                label: '带看房源1'
            },
            {
                value: '带看房源2',
                label: '带看房源2'
            },
            {
                value: '带看房源3',
                label: '带看房源3'
            },

        ],
        see: '',
        //单选
        /*清空*/
        empty: '',
        /*转移*/
        transfer: '',
        /*恢复客户*/
        regain: false,
        /*省份城市选择*/
        data: [{
            value: '四川',
            label: '四川',
            children: [
                {
                    value: '成都',
                    label: '成都'
                }
            ]
        }, {
            value: 'jiangsu',
            label: '江苏',
            children: [
                {
                    value: 'nanjing',
                    label: '南京',
                }
            ],
        },
            {
                value: "hainan",
                label: "海南",
                children: [
                    {
                        value: "haikou",
                        label: "海口"
                    }
                ]
            }
        ],

        province: [],
        /*默认排序*/
        sort: [
            {
                value: 'morenpaixuy',
                label: '默认排序1',
            },
            {
                value: 'morenpaixue',
                label: '默认排序2'
            },
            {
                value: 'morenpaixus',
                label: '默认排序3'
            }
        ],
        defaultSort: '',

    }
})
/*显示组员数据*/
var displayCrew = new Vue({
    el: "#displayCrew",
    data: {
        /*全体销售人员筛选*/
        timeWhole: [
            {
                value: 'bushiyong',
                label: '全体'
            },
            {
                value: 'lurushijian',
                label: '全体销售'
            },
            {
                value: 'jihuahuifang',
                label: '全体销售人员'
            },
            {
                value: 'jihuahuifangshijian',
                label: '销售人员'
            }
        ],
        whole: '',

        /*显示组员*/
        baseData: [{
            expand: true,
            title: '全体销售人员',
            expand: true,
            children: [
                {
                    title: '销售部01',
                    expand: false,
                    disabled: false,
                    children: [{
                        title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b></b></span>',

                    }, {
                        title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b></b></span>',
                    }]
                },
                {
                    title: '销售部02',
                    expand: false,
                    checked: false,
                    children: [{
                        title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b></b></span>',
                    },
                        {
                            title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b></b></span>',
                        },
                        {
                            title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b></b></span>',
                        },
                        {
                            title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b></b></span>',
                        }]
                },
                {
                    title: '销售部02',
                    expand: false,
                    checked: false,
                    children: [{
                        title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b class="on"></b></span>',
                    },
                        {
                            title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b class="on"></b></span>',
                        },
                        {
                            title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b class="on"></b></span>',
                        },
                        {
                            title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b></b></span>',
                        }]
                },
                {
                    title: '销售部02',
                    expand: false,
                    checked: false,
                    children: [{
                        title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b class="on"></b></span>',
                    },
                        {
                            title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b class="on"></b></span>',
                        },
                        {
                            title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b class="on"></b></span>',
                        },
                        {
                            title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b></b></span>',
                        }]
                },
                {
                    title: '销售部02',
                    expand: false,
                    checked: false,
                    children: [{
                        title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b class="on"></b></span>',
                    },
                        {
                            title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b class="on"></b></span>',
                        },
                        {
                            title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b class="on"></b></span>',
                        },
                        {
                            title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b></b></span>',
                        }]
                },
                {
                    title: '销售部02',
                    expand: false,
                    checked: false,
                    children: [{
                        title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b class="on"></b></span>',
                    },
                        {
                            title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b class="on"></b></span>',
                        },
                        {
                            title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b class="on"></b></span>',
                        },
                        {
                            title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b></b></span>',
                        }]
                },
                {
                    title: '销售部02',
                    expand: false,
                    checked: false,
                    children: [{
                        title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b class="on"></b></span>',
                    },
                        {
                            title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b class="on"></b></span>',
                        },
                        {
                            title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b class="on"></b></span>',
                        },
                        {
                            title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b></b></span>',
                        }]
                },
                {
                    title: '销售部02',
                    expand: false,
                    checked: false,
                    children: [{
                        title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b class="on"></b></span>',
                    },
                        {
                            title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b class="on"></b></span>',
                        },
                        {
                            title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 100</em><b class="on"></b></span>',
                        },
                        {
                            title: '<span><img src="images/x1.png"><i>Mikasa</i><em>客户数量：100 / 1010</em><b></b></span>',
                        }]
                }
            ]
        }
        ],
    }
})
/*列表开始数据*/
var myClient = new Vue({
    el: "#myClient",
    data: {

        myClient: [
            {

                type: 'selection',
                width: 40,
                align: 'left',
                /* fixed: 'left'*/
            },
            {
                title: '跟踪状态',
                width: 85,
                key: 'genzong',

                /* fixed: 'left'*/

            },
            {
                title: '购买意向',
                width: 85,
                key: 'goumai',
                /*fixed: 'left'*/
            },
            {
                title: '姓名',
                width: 105,
                key: 'name',
                /* fixed: 'left'*/
            },
            {
                title: '销售员',
                width: 105,
                key: 'xiaoshouyuan',
            },
            {
                title: '录入时间',
                width: 102,
                key: 'lurushijian',
            },
            {
                title: '联系方式',
                width: 106,
                key: 'lianxifangshi',
            },
            {
                title: '客户地区',
                width: 110,
                key: 'kehudiqu',
            },
            {
                title: '客户来源',
                width: 84,
                key: 'laiyuan',
            },
            {
                title: '来源明细',
                width: 100,
                key: 'mingxi',

            },
            {
                title: '最近回访时间',
                width: 116,
                key: 'huifang',
            },
            {
                title: '最近跟踪情况a',
                width: 200,
                key: 'qingkuanga',
            },
            {
                title: '最近跟',
                width: 100,
                key: 'qingkuangb',
            },
            {
                title: '来源明细c',
                width: 100,
                key: 'mingxic',

            },
            {
                title: '航班号',
                width: 100,
                key: 'hangbanhao'
            }
        ],
        myClientData: [
            {
                genzong: '等待回访',
                goumai: '无意向',
                name: 'Mikasa',
                xiaoshouyuan: '销售员',
                lurushijian: '录入时间',
                lianxifangshi: '联系方式',
                kehudiqu: '海南省，海口市',
                laiyuan: '58同城',
                mingxi: '碧海青天',
                huifang: '2017.02.02',
                qingkuanga: '投资自住a',
                qingkuangb: '投资自住b',
                qingkuangc: '投资自住c',
                qingkuangd: '投资自住d',
                qingkuange: '投资自住e',
                qingkuangf: '投资自住f',
                hangbanhao: 'mh237',
                cellClassName: {
                    genzong: 'dengdai',
                    goumai: 'wu',
                    qingkuang: 'zuijin'
                }
            },
            {
                genzong: '确定接机',
                goumai: '意向较弱',
                name: 'Mikasa',
                xiaoshouyuan: '销售员',
                lurushijian: '录入时间',
                lianxifangshi: '联系方式',
                kehudiqu: '海南省，海口市',
                laiyuan: '58同城',
                mingxi: '碧海青天',
                huifang: '2017.02.02',
                qingkuang: '投资自住',
                cellClassName: {
                    genzong: 'jieji',
                    goumai: 'jiaoruo'
                }
            },

            {
                genzong: '等待回访',
                goumai: '无意向',
                name: 'Mikasa',
                xiaoshouyuan: '销售员',
                lurushijian: '录入时间',
                lianxifangshi: '联系方式',
                kehudiqu: '海南省，海口市',
                laiyuan: '58同城',
                mingxi: '碧海青天',
                huifang: '2017.02.02',
                qingkuanga: '投资自住a',
                qingkuangb: '投资自住b',
                qingkuangc: '投资自住c',
                qingkuangd: '投资自住d',
                qingkuange: '投资自住e',
                qingkuangf: '投资自住f',
                hangbanhao: 'mh237',
                cellClassName: {
                    genzong: 'dengdai',
                    goumai: 'wu',
                    qingkuang: 'zuijin'
                }
            },
            {
                genzong: '确定接机',
                goumai: '意向较弱',
                name: 'Mikasa',
                xiaoshouyuan: '销售员',
                lurushijian: '录入时间',
                lianxifangshi: '联系方式',
                kehudiqu: '海南省，海口市',
                laiyuan: '58同城',
                mingxi: '碧海青天',
                huifang: '2017.02.02',
                qingkuang: '投资自住',
                cellClassName: {
                    genzong: 'jieji',
                    goumai: 'jiaoruo'
                }
            },
            {
                genzong: '已带看',
                goumai: '意向一般',
                name: 'Mikasa',
                xiaoshouyuan: '销售员',
                lurushijian: '录入时间',
                lianxifangshi: '联系方式',
                kehudiqu: '海南省，海口市',
                laiyuan: '58同城',
                mingxi: '碧海青天',
                huifang: '2017.02.02',
                qingkuang: '投资自住',
                cellClassName: {
                    genzong: 'yidaikan',
                    goumai: 'yiban'
                }
            },
            {
                genzong: '成交待回访',
                goumai: '意向强烈',
                name: 'Mikasa',
                xiaoshouyuan: '销售员',
                lurushijian: '录入时间',
                lianxifangshi: '联系方式',
                kehudiqu: '海南省，海口市',
                laiyuan: '58同城',
                mingxi: '碧海青天',
                huifang: '2017.02.02',
                qingkuang: '投资自住',
                cellClassName: {
                    genzong: 'chengjiao',
                    goumai: 'qianglie'
                }
            },
            {
                genzong: '等待回访',
                goumai: '无意向',
                name: 'Mikasa',
                xiaoshouyuan: '销售员',
                lurushijian: '录入时间',
                lianxifangshi: '联系方式',
                kehudiqu: '海南省，海口市',
                laiyuan: '58同城',
                mingxi: '碧海青天',
                huifang: '2017.02.02',
                qingkuang: '投资自住',
                cellClassName: {
                    genzong: 'dengdai',
                    goumai: 'wu'
                }
            },
            {
                genzong: '等待回访',
                goumai: '无意向',
                name: 'Mikasa',
                xiaoshouyuan: '销售员',
                lurushijian: '录入时间',
                lianxifangshi: '联系方式',
                kehudiqu: '海南省，海口市',
                laiyuan: '58同城',
                mingxi: '碧海青天',
                huifang: '2017.02.02',
                qingkuanga: '投资自住a',
                qingkuangb: '投资自住b',
                qingkuangc: '投资自住c',
                qingkuangd: '投资自住d',
                qingkuange: '投资自住e',
                qingkuangf: '投资自住f',
                hangbanhao: 'mh237',
                cellClassName: {
                    genzong: 'dengdai',
                    goumai: 'wu',
                    qingkuang: 'zuijin'
                }
            },
            {
                genzong: '确定接机',
                goumai: '意向较弱',
                name: 'Mikasa',
                xiaoshouyuan: '销售员',
                lurushijian: '录入时间',
                lianxifangshi: '联系方式',
                kehudiqu: '海南省，海口市',
                laiyuan: '58同城',
                mingxi: '碧海青天',
                huifang: '2017.02.02',
                qingkuang: '投资自住',
                cellClassName: {
                    genzong: 'jieji',
                    goumai: 'jiaoruo'
                }
            },
            {
                genzong: '已带看',
                goumai: '意向一般',
                name: 'Mikasa',
                xiaoshouyuan: '销售员',
                lurushijian: '录入时间',
                lianxifangshi: '联系方式',
                kehudiqu: '海南省，海口市',
                laiyuan: '58同城',
                mingxi: '碧海青天',
                huifang: '2017.02.02',
                qingkuang: '投资自住',
                cellClassName: {
                    genzong: 'yidaikan',
                    goumai: 'yiban'
                }
            },
            {
                genzong: '成交待回访',
                goumai: '意向强烈',
                name: 'Mikasa',
                xiaoshouyuan: '销售员',
                lurushijian: '录入时间',
                lianxifangshi: '联系方式',
                kehudiqu: '海南省，海口市',
                laiyuan: '58同城',
                mingxi: '碧海青天',
                huifang: '2017.02.02',
                qingkuang: '投资自住',
                cellClassName: {
                    genzong: 'chengjiao',
                    goumai: 'qianglie'
                }
            },
            {
                genzong: '等待回访',
                goumai: '无意向',
                name: 'Mikasa',
                xiaoshouyuan: '销售员',
                lurushijian: '录入时间',
                lianxifangshi: '联系方式',
                kehudiqu: '海南省，海口市',
                laiyuan: '58同城',
                mingxi: '碧海青天',
                huifang: '2017.02.02',
                qingkuang: '投资自住',
                cellClassName: {
                    genzong: 'dengdai',
                    goumai: 'wu'
                }
            }
        ]
    }
})
/*弹框数据*/
var vm = new Vue({
    el: '#app',
    data: {
        //弹框
        info_modal1: false,//修改客户资料
        changeClient_modal1: false,//转移客户
        sellVisit_modal4: false,//填写最新回访记录
        addPublic_modal: false,//放入公客池
        deal_modal: false,//新建成交成交记录
        //cnnt_modal: false,//添加联系方式
        //添加新客户中内容弹窗
        list1: [
            {
                value: '公共客户1',
                label: '公共客户2'
            },
            {
                value: '公共客户2',
                label: '公共客户2'
            },
            {
                value: '公共客户3',
                label: '公共客户3'
            },

        ],
        model1: '',
        list2: [
            {
                value: '销售部1',
                label: '销售部1'
            },
            {
                value: '销售部2',
                label: '销售部2'
            },
            {
                value: '销售部3',
                label: '销售部3'
            },

        ],
        model2: '',
        list3: [
            {
                value: '销售部1',
                label: '销售部1'
            },
            {
                value: '销售部2',
                label: '销售部2'
            },
            {
                value: '销售部3',
                label: '销售部3'
            },

        ],
        model3: '',
        list4: [
            {
                value: 'PC',
                label: 'PC'
            },
            {
                value: '微信端',
                label: '微信端'
            },
            {
                value: '微信端',
                label: '微信端'
            },

        ],
        model4: '',
        list5: [
            {
                value: 'PC',
                label: 'PC'
            },
            {
                value: '微信端',
                label: '微信端'
            },
            {
                value: '微信端',
                label: '微信端'
            },

        ],
        model5: '',
        list6: [
            {
                value: '普通客户',
                label: '普通客户'
            },
            {
                value: '普通客户1',
                label: '普通客户1'
            },
            {
                value: '普通客户2',
                label: '普通客户2'
            },

        ],
        model6: '',
        //省市
        data: [{
            value: 'hainan',
            label: '海南省',
            children: [
                {
                    value: 'gugong',
                    label: '海口市'
                },
                {
                    value: 'tiantan',
                    label: '澄迈县'
                },
                {
                    value: 'wangfujing',
                    label: '文昌市'
                }
            ]
        },
            {
                value: 'beijing',
                label: '北京市',
                children: [
                    {
                        value: 'gugong',
                        label: '北京市'
                    }
                ]
            },
        ],

        //销售回访记录tab1
        //转移客户弹窗内容
        /*选择用户*/
        user: [
            {
                value: '客户1',
                label: '客户2'
            },
            {
                value: '客户2',
                label: '客户2'
            },
            {
                value: '客户3',
                label: '客户3'
            },

        ],
        selectUser: '',
        /*跟踪状态*/
        status: [
            {
                value: '销售部1',
                label: '销售部1'
            },
            {
                value: '销售部2',
                label: '销售部2'
            },
            {
                value: '销售部3',
                label: '销售部3'
            },

        ],
        trackStatus: '',
        /*计划回访类别*/
        plan: [
            {
                value: '电话回访',
                label: '电话回访'
            },
            {
                value: '带看回访',
                label: '带看回访'
            },
            {
                value: '接机回访',
                label: '接机回访'
            },

        ],
        modelplan: '',
        /*带看房源*/
        seelist: [
            {
                value: '带看房源1',
                label: '带看房源1'
            },
            {
                value: '带看房源2',
                label: '带看房源2'
            },
            {
                value: '带看房源3',
                label: '带看房源3'
            },

        ],
        see: '',
        //单选
        /*清空*/
        empty: '',
        /*转移*/
        transfer: '',


        //填写最新回访记录弹窗内容
        //----------------------
        /*回访类别下拉内容*/
        new_option01: [
            {
                value: 'bushiyong',
                label: '电话回访'
            },
            {
                value: 'lurushijian',
                label: '接机回访'
            },
            {
                value: 'jihuahuifang',
                label: '带看回访'
            },

        ],
        new_model01: '',

        /*回访人员*/
        new_option02: [
            {
                value: 'bushiyong',
                label: '不启用02'
            },
            {
                value: 'lurushijian',
                label: '录入时间02'
            },
            {
                value: 'jihuahuifang',
                label: '计划回访02'
            },
            {
                value: 'jihuahuifangshijian',
                label: '计划回访时间02'
            }
        ],
        new_model02: '',

        /*接通情况*/
        new_option03: [
            {
                value: 'bushiyong',
                label: '不启用03'
            },
            {
                value: 'lurushijian',
                label: '录入时间03'
            },
            {
                value: 'jihuahuifang',
                label: '计划回访03'
            },
            {
                value: 'jihuahuifangshijian',
                label: '计划回访时间03'
            }
        ],
        new_model03: '',

        /*购买意向*/
        new_option04: [
            {
                value: 'bushiyong',
                label: '不启用04'
            },
            {
                value: 'lurushijian',
                label: '录入时间04'
            },
            {
                value: 'jihuahuifang',
                label: '计划回访04'
            },
            {
                value: 'jihuahuifangshijian',
                label: '计划回访时间04'
            }
        ],
        new_model04: '',

        /*求购类型*/
        new_option05: [
            {
                value: 'bushiyong',
                label: '不启用05'
            },
            {
                value: 'lurushijian',
                label: '录入时间05'
            },
            {
                value: 'jihuahuifang',
                label: '计划回访05'
            },
            {
                value: 'jihuahuifangshijian',
                label: '计划回访时间05'
            }
        ],
        new_model05: '',

        /*需求面积*/
        new_option06: [
            {
                value: 'bushiyong',
                label: '不启用06'
            },
            {
                value: 'lurushijian',
                label: '录入时间06'
            },
            {
                value: 'jihuahuifang',
                label: '计划回访06'
            },
            {
                value: 'jihuahuifangshijian',
                label: '计划回访时间06'
            }
        ],
        new_model06: '',

        /*价格范围*/
        new_option07: [
            {
                value: 'bushiyong',
                label: '不启用07'
            },
            {
                value: 'lurushijian',
                label: '录入时间07'
            },
            {
                value: 'jihuahuifang',
                label: '计划回访07'
            },
            {
                value: 'jihuahuifangshijian',
                label: '计划回访时间07'
            }
        ],
        new_model07: '',

        /*计划回访类型*/
        new_option08: [
            {
                value: 'bushiyong',
                label: '计划电话回访'
            },
            {
                value: 'lurushijian',
                label: '计划接机回访'
            },
            {
                value: 'jihuahuifang',
                label: '计划带看回访'
            },

        ],
        new_model08: '',

        /*隐藏的带看房源*/
        new_seelist_record: [
            {
                value: '最新回访带看房源1',
                label: '带看房源1'
            },
            {
                value: '带看房源2',
                label: '带看房源2'
            },
            {
                value: '带看房源3',
                label: '带看房源3'
            },

        ],
        new_see_record: '',

        new_seelist_plan: [
            {
                value: '最新回访带看房源1下',
                label: '带看房源1'
            },
            {
                value: '带看房源2',
                label: '带看房源2'
            },
            {
                value: '带看房源3',
                label: '带看房源3'
            },

        ],
        new_see_plan: '',
        new_seelist_plan_status: [
            {
                value: '房源带看状态1',
                label: '房源带看状态1'
            },
            {
                value: '房源带看状态2',
                label: '房源带看状态2'
            },
            {
                value: '房源带看状态3',
                label: '房源带看状态3'
            },

        ],
        new_see_plan_status: '',
        //----------------------


//            带看记录tab2开始
        seeRecord: [
            {
                title: '带看时间',
                key: 'seeTime',
                width: '11.8%'
            },
            {
                title: '带看房源',
                key: 'seeCustomer',
            },
            {
                title: '带看人',
                key: 'seePeople',
                width: '11.8%'
            },
            {
                title: '购买意向',
                key: 'purchaseIntention',
                width: '14%'
            },
            {
                title: '带看详情',
                key: 'seeDetails',
                width: '25.3%'
            }
        ],
        seeRecordData: [
            // {
            //     seeTime: '2017.02.02',
            //     seeCustomer: '客户1',
            //     seePeople: '销售员A',
            //     purchaseIntention: '意向强烈',
            //     seeDetails: '123123',
            //     cellClassName: {
            //         purchaseIntention: 'yxql-green',
            //     }
            // },
            // {
            //     seeTime: '2017.02.02',
            //     seeCustomer: '客户1',
            //     seePeople: '销售员A',
            //     purchaseIntention: '意向一般',
            //     seeDetails: '123123',
            //     cellClassName: {
            //         purchaseIntention: 'yxyb-blue',
            //     }
            // },
            // {
            //     seeTime: '2017.02.02',
            //     seeCustomer: '客户1',
            //     seePeople: '销售员A',
            //     purchaseIntention: '意向较弱',
            //     seeDetails: '123123',
            //     cellClassName: {
            //         purchaseIntention: 'yxjr-yellow',
            //     }
            // },
            // {
            //     seeTime: '2017.02.02',
            //     seeCustomer: '客户1',
            //     seePeople: '销售员A',
            //     purchaseIntention: '无意向',
            //     seeDetails: '123123',
            //     cellClassName: {
            //         purchaseIntention: 'wyx-red',
            //     }
            // },
            // {
            //     seeTime: '2017.02.02',
            //     seeCustomer: '客户1',
            //     seePeople: '销售员A',
            //     purchaseIntention: '意向强烈',
            //     seeDetails: '123123',
            //     cellClassName: {
            //         purchaseIntention: 'yxql-green',
            //     }
            // },
            // {
            //     seeTime: '2017.02.02',
            //     seeCustomer: '客户1',
            //     seePeople: '销售员A',
            //     purchaseIntention: '意向一般',
            //     seeDetails: '123123',
            //     cellClassName: {
            //         purchaseIntention: 'yxyb-blue',
            //     }
            // },
            // {
            //     seeTime: '2017.02.02',
            //     seeCustomer: '客户1',
            //     seePeople: '销售员A',
            //     purchaseIntention: '意向较弱',
            //     seeDetails: '123123',
            //     cellClassName: {
            //         purchaseIntention: 'yxjr-yellow',
            //     }
            // },
            // {
            //     seeTime: '2017.02.02',
            //     seeCustomer: '客户1',
            //     seePeople: '销售员A',
            //     purchaseIntention: '无意向',
            //     seeDetails: '123123',
            //     cellClassName: {
            //         purchaseIntention: 'wyx-red',
            //     }
            // },
            // {
            //     seeTime: '2017.02.02',
            //     seeCustomer: '客户1',
            //     seePeople: '销售员A',
            //     purchaseIntention: '意向强烈',
            //     seeDetails: '123123',
            //     cellClassName: {
            //         purchaseIntention: 'yxql-green',
            //     }
            // },
            // {
            //     seeTime: '2017.02.02',
            //     seeCustomer: '客户1',
            //     seePeople: '销售员A',
            //     purchaseIntention: '意向一般',
            //     seeDetails: '123123',
            //     cellClassName: {
            //         purchaseIntention: 'yxyb-blue',
            //     }
            // },
            // {
            //     seeTime: '2017.02.02',
            //     seeCustomer: '客户1',
            //     seePeople: '销售员A',
            //     purchaseIntention: '意向较弱',
            //     seeDetails: '123123',
            //     cellClassName: {
            //         purchaseIntention: 'yxjr-yellow',
            //     }
            // },
            // {
            //     seeTime: '2017.02.02',
            //     seeCustomer: '客户1',
            //     seePeople: '销售员A',
            //     purchaseIntention: '无意向',
            //     seeDetails: '123123',
            //     cellClassName: {
            //         purchaseIntention: 'wyx-red',
            //     }
            // },

        ],

        /*成交记录列表*/
        closingRecord: [
            {
                title: '成交时间',
                key: 'closingTime',

            },
            {
                title: '成交客户',
                key: 'closingCustomer',
            },

            {
                title: '销售员',
                key: 'salesperson',

            },
            {
                title: '面积',
                key: 'acreage',

            },
            {
                title: '成交价格',
                key: 'transactionPrice',

            },
            {
                title: '操作',
                key: 'operation',

                render: (function (index) {
                    return (
                        ' <Tooltip placement="top" content="查看"><p class="eyes p-click" type="primary" @click="operation(' + index.id + ')"></p></Tooltip>'
                    )
                })
            }
        ],
        closingRecordData: [
            // {
            //     closingTime: '2017.02.02',
            //     closingCustomer: '客户1',
            //     salesperson: '销售员A',
            //     acreage: '100m²',
            //     transactionPrice: '100万',
            //     operation: '',
            // },
            // {
            //     closingTime: '2017.02.02',
            //     closingCustomer: '客户1',
            //     salesperson: '销售员A',
            //     acreage: '100m²',
            //     transactionPrice: '100万',
            //     operation: '',
            // },
            // {
            //     closingTime: '2017.02.02',
            //     closingCustomer: '客户1',
            //     salesperson: '销售员A',
            //     acreage: '100m²',
            //     transactionPrice: '100万',
            //     operation: '',
            // },
            // {
            //     closingTime: '2017.02.02',
            //     closingCustomer: '客户1',
            //     salesperson: '销售员A',
            //     acreage: '100m²',
            //     transactionPrice: '100万',
            //     operation: '',
            // },
            // {
            //     closingTime: '2017.02.02',
            //     closingCustomer: '客户1',
            //     salesperson: '销售员A',
            //     acreage: '100m²',
            //     transactionPrice: '100万',
            //     operation: '',
            // },
            // {
            //     closingTime: '2017.02.02',
            //     closingCustomer: '客户1',
            //     salesperson: '销售员A',
            //     acreage: '100m²',
            //     transactionPrice: '100万',
            //     operation: '',
            // },
            // {
            //     closingTime: '2017.02.02',
            //     closingCustomer: '客户1',
            //     salesperson: '销售员A',
            //     acreage: '100m²',
            //     transactionPrice: '100万',
            //     operation: '',
            // },
            // {
            //     closingTime: '2017.02.02',
            //     closingCustomer: '客户1',
            //     salesperson: '销售员A',
            //     acreage: '100m²',
            //     transactionPrice: '100万',
            //     operation: '',
            // },
            // {
            //     closingTime: '2017.02.02',
            //     closingCustomer: '客户1',
            //     salesperson: '销售员A',
            //     acreage: '100m²',
            //     transactionPrice: '100万',
            //     operation: '',
            // },
            // {
            //     closingTime: '2017.02.02',
            //     closingCustomer: '客户1',
            //     salesperson: '销售员A',
            //     acreage: '100m²',
            //     transactionPrice: '100万',
            //     operation: '',
            // },
            // {
            //     closingTime: '2017.02.02',
            //     closingCustomer: '客户1',
            //     salesperson: '销售员A',
            //     acreage: '100m²',
            //     transactionPrice: '100万',
            //     operation: '',
            // },
            // {
            //     closingTime: '2017.02.02',
            //     closingCustomer: '客户1',
            //     salesperson: '销售员A',
            //     acreage: '100m²',
            //     transactionPrice: '100万',
            //     operation: '',
            // }, {
            //     closingTime: '2017.02.02',
            //     closingCustomer: '客户1',
            //     salesperson: '销售员A',
            //     acreage: '100m²',
            //     transactionPrice: '100万',
            //     operation: '',
            // },
            // {
            //     closingTime: '2017.02.02',
            //     closingCustomer: '客户1',
            //     salesperson: '销售员A',
            //     acreage: '100m²',
            //     transactionPrice: '100万',
            //     operation: '',
            // }, {
            //     closingTime: '2017.02.02',
            //     closingCustomer: '客户1',
            //     salesperson: '销售员A',
            //     acreage: '100m²',
            //     transactionPrice: '100万',
            //     operation: '',
            // },
            // {
            //     closingTime: '2017.02.02',
            //     closingCustomer: '客户1',
            //     salesperson: '销售员A',
            //     acreage: '100m²',
            //     transactionPrice: '100万',
            //     operation: '',
            // },


        ],
//           新建成交记录弹框和内容
        /*成交回访*/
        deal_option01: [
            {
                value: '成交回访1',
                label: '成交回访1'
            },
            {
                value: '成交回访2',
                label: '成交回访2'
            },

        ],
        deal_model01: '',

        /*销售员*/
        deal_option02: [
            {
                value: '销售员',
                label: '销售员'
            },
            {
                value: '销售员2',
                label: '销售员2'
            },

        ],
        deal_model02: '',

        /*协助人员*/
        deal_option03: [
            {
                value: '协助人员',
                label: '协助人员'
            },
            {
                value: '协助人员2',
                label: '协助人员2'
            },
        ],
        deal_model03: '',
        /*带看房源*/
        deal_seelist_record: [
            {
                value: '带看房源',
                label: '带看房源'
            },
            {
                value: '带看房源2',
                label: '带看房源2'
            },
        ],
        deal_see_record: '',

        /*成交价格*/
        deal_price04: 0,


        /*支付方式*/
        deal_option05: [
            {
                value: '支付方式',
                label: '支付方式'
            },
            {
                value: '支付方式2',
                label: '支付方式2'
            },

        ],
        deal_model05: '',

        /*成交房源面积*/
        deal_area: '100',


        /*成交房源户型*/
        deal_type: '一室一厅',


        //联系我们tab4开始

        formDynamic: [],
        editDynamic: [],
        noEditDynamic: [],
        //编辑初始化数据
        name: '张女士',
        shouji: '12345678901',
        moreShouji1: '12345678901',
        moreShouji2: '12345678901',
        zuoji: '010-12345678',
        weixin: '12345678901',
        qq: '393004498',
        willShow: true,
        btnShow: true,
        btnAddShow: true,

    },
    methods: {
        /*联系方式的添加和删除开始*/
        handleAdd: function () {
            var pobj = {};
            this.formDynamic.push(pobj);

            // this.btnShow = false;


            this.btnShow=false;

            this.btnAddShow=false;

        },
        editAdd: function () {
            this.willShow=false;
            this.btnShow=false;

            this.btnAddShow=false;



        },
        /*/!* 输入手机号后出现可点击添加按钮*!/*/
        InputEvents: function () {
            $(".inputPhone").bind("input propertychange", function () {
                var thist = $(this);
                thist.next().show();
            })
        },
        phoneAdd: function () {
            $(".addPhone").append('<p class="showPhone"><input type="text" class="inputPhone" maxlength="11"/></p>');
        },

        /*联系方式的添加和删除结束*/
    },
    computed: {
        addConfirm: function (index) {

            this.formDynamic.splice(index, 1);

            this.willShow=true;

            this.btnShow=true;

        },
        addRemove: function (id) {
            var index = this.formDynamic.findIndex(function (obj) {
                return obj.id == id;
            });
            this.formDynamic.splice(index, 1);


            this.btnShow=true;

        },

        editConfirm: function (index) {
            // var pobj = {};
            // this.noEditDynamic.push(pobj);
            this.formDynamic.splice(index, 1);

            this.willShow = true;
            this.btnShow=true;
            this.btnAddShow=false;




        },
        editRemove: function (index) {

            this.formDynamic.splice(index, 1);
            this.willShow = true;
            this.btnShow=true;
            this.btnAddShow=false;



        },

    },
})